package org.example.myleet.p556;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(21 == solution.nextGreaterElement(12));
        Assert.isTrue(-1 == solution.nextGreaterElement(21));
        Assert.isTrue(-1 == solution.nextGreaterElement(2147483647));
        Assert.isTrue(2147483632 == solution.nextGreaterElement(2147483623));
        Assert.isTrue(230412 == solution.nextGreaterElement(230241));
        Assert.isTrue(2302412 == solution.nextGreaterElement(2302241));
    }
}
